using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Utils;


public enum MonsterState
{
    Idle,
    Tracking,
    Stroll,
    Attack,
    Die
}
public abstract class Monster : MonoBehaviour
{
    public RoomController roomCtr;
    public MonsterState monsterState = MonsterState.Idle;  //测试ai 建议改为Stroll
    // protected string role = "Monster";
    public Transform targetPosition;
    
    public float hp;
    public int atk;
    public float speed;
    public float attackCD;

    public bool isBoss;

    protected RaycastHit2D hit;
    protected LayerMask layerMask = 9;
    protected AstarAI ai;
    
    protected static readonly int inRun = Animator.StringToHash("inRun");
    protected static readonly int isDie = Animator.StringToHash("isDie");

    protected Animator animator;
    protected Collider2D collider2D;
    protected SpriteRenderer spriteRenderer;

    public GameObject graveObj;

    public abstract void Idle();
    public abstract void Stroll();
    public abstract void Tracking();
    public abstract void Attack();

    public abstract void Die();

    public abstract void BeAttacked();

}
